home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998…eptember: Technology Seed / September 98 ADC Seed CD.toast / FireWire 1.1 DR2 SDK / Source / VDig / MakeFile < prev   
Encoding:
Makefile  |  1998-01-15  |  5.7 KB  |  194 lines  |  [TEXT/MPS ]

  1. #
  2. #    File:        MakeFile
  3. #
  4. #    Contains:    Build rules for VDig sample code.
  5. #
  6. #    Written by:    Erik Staats
  7. #
  8. #    Copyright:    © 1996-1997 by Apple Computer, Inc., all rights reserved.
  9. #
  10. #    Change History (most recent first):
  11. #
  12. #      <FW32>     8/29/97    KDM        Bumped version to 1.0.1a6. Piece of Blaze 1.1a6
  13. #      <FW31>     6/19/97    GG        Bumped version to 1.0.1a5.
  14. #      <FW30>     5/29/97    GG        Bumped version to 1.0.1a4.
  15. #      <FW29>     5/16/97    GG        Bumped FireWire version to 1.01a3.
  16. #      <FW28>     4/29/97    GG        Bumped version to 1.0.1a2.
  17. #      <FW27>     4/10/97    GG        Bumped version to 1.0.1d1.
  18. #      <FW26>     3/27/97    GG        Bumped version to 1.0 GM.
  19. #      <FW25>     3/19/97    GG        Bumped version to 1.0b3.
  20. #      <FW24>     3/12/97    GG        Bumped version to 1.0b2.
  21. #      <FW23>     2/19/97    GG        Bumped version to 1.0a3.
  22. #      <FW22>     2/11/97    GG        Bumped copyright to 1997.
  23. #      <FW21>     2/11/97    GG        Bumped version to 1.0a2.
  24. #      <FW20>      2/4/97    GG        Bumped version to 1.0d24.
  25. #      <FW19>     1/28/97    GG        Bumped version to 1.0d23.
  26. #      <FW18>     1/21/97    GG        Bumped version to 1.0d22.
  27. #      <FW17>      1/2/97    GG        Bumped Version to 1.0d21.
  28. #      <FW16>    12/20/96    GG        Bumped Version to 1.0d20.
  29. #      <FW15>     12/6/96    GG        Bumped version to 1.0d19.
  30. #      <FW14>    11/27/96    ES        Removed links to DevNLib.
  31. #      <FW13>    11/14/96    GG        Bumped version to 1.0d18.
  32. #      <FW12>    10/31/96    ES        Bumped version to 1.0d17.
  33. #      <FW11>    10/16/96    ES        Bumped version to 1.0d16.
  34. #      <FW10>     10/2/96    ES        Bumped version to 1.0d15.
  35. #       <FW9>     9/12/96    ES        Bumped version to 1.0d14.
  36. #       <FW8>     8/26/96    ES        Changed to use MrC and SC. This MakeFile will now only work with
  37. #                                    ETO #20 and forward.
  38. #       <FW7>     7/11/96    ES        Bumped version to 1.0d13.
  39. #       <FW6>     7/11/96    ES        Bumped version to 1.0d12.
  40. #       <FW5>     6/24/96    ES        Bumped version to 1.0d11.
  41. #       <FW4>     6/20/96    ES        Added some defs so we can do test builds using the MrC compiler.
  42. #       <FW3>     6/20/96    ES        Changed FWCCMDriverRootDir to VDigRootDir.
  43. #       <FW2>     6/20/96    ES        Filled in contains and written by fields.
  44. #       <FW1>     6/20/96    ES        first checked in
  45. #
  46. #
  47.  
  48. ################################################################################
  49. #
  50. # Define some directories
  51. #
  52.  
  53. VDigRootDir                    =    :
  54.  
  55. FWSampleDir                    =    {VDigRootDir}::
  56.  
  57. SysInterfacesDir            =    {FWSampleDir}Interfaces:
  58. FWCCMInterfacesDir            =    {VDigRootDir}Interfaces:
  59.  
  60. SysLibrariesDir                =    {FWSampleDir}Libraries:
  61. FWCCMLibrariesDir            =    {VDigRootDir}Libraries:
  62.  
  63. FWCCMDriverSourceDir        =    {VDigRootDir}FWCCMDriver:
  64.  
  65. BuildResultsDir                =    {FWSampleDir}BuildResults:
  66. ObjectsDir                    =    {BuildResultsDir}Objects:
  67. ExtensionsDir                =    {BuildResultsDir}Extensions:
  68.  
  69. ################################################################################
  70. #
  71. # Define version info
  72. #
  73.  
  74. FWVersion                    =    1
  75. FWRevision                    =    0
  76. FWBuildStage                =    alpha
  77. FWBuildNumber                =    6
  78. FWShortVersionString        =    '"1.0.1a6"'
  79. FWLongVersionString            =    '"1.0.1a6, © 1995-97 Apple Computer, Inc."'
  80.  
  81.  
  82. ################################################################################
  83. #
  84. # Define stuff for 68K compilation
  85. #
  86.  
  87. C68KOptions                    =    -d ccompile                                    ∂
  88.                                 -b                                            ∂
  89.                                 -r                                            ∂
  90.                                 -i "{SysInterfaces}"                        ∂
  91.                                 -i "{CIncludes}"                            ∂
  92.                                 -mc68020
  93.  
  94. Asm68K                        =    Asm
  95.  
  96. C68K                        =    SC
  97.  
  98. Link68K                        =    Link
  99.  
  100.  
  101. ################################################################################
  102. #
  103. # Define stuff for PowerPC compilation
  104. #
  105.  
  106. MrCOptions                    =    -opt speed                                    ∂
  107.                                 -w 2,7,35                                    ∂
  108.                                 -d TRUE=1                                    ∂
  109.                                 -d FALSE=0                                    ∂
  110.                                 -i "{SysInterfacesDir}"                        ∂
  111.                                 -i "{FWCCMInterfacesDir}"                    ∂
  112.                                 -i "{CIncludes}"
  113.  
  114. CPPCOptions                    =    {MrCOptions}
  115.  
  116. AsmPPC                        =    PPCAsm
  117.  
  118. AsmPPCOptions                =    -dialect PowerPC                            ∂
  119.                                 -o {Targ}
  120.  
  121. CPPC                        =    MrC
  122.  
  123. LinkPPC                        =    PPCLink
  124.  
  125.  
  126. ################################################################################
  127. #
  128. # Define stuff for rez
  129. #
  130.  
  131. RezOptions                    =    -d FWVersion={FWVersion}                    ∂
  132.                                 -d FWRevision={FWRevision}                    ∂
  133.                                 -d FWBuildStage={FWBuildStage}                ∂
  134.                                 -d FWBuildNumber={FWBuildNumber}            ∂
  135.                                 -d FWShortVersionString={FWShortVersionString}    ∂
  136.                                 -d FWLongVersionString={FWLongVersionString}
  137.  
  138.  
  139. ################################################################################
  140. #
  141. # FireWire CCM driver
  142. #
  143.  
  144. "{ObjectsDir}FWCCMDriver.c.o"    ƒ                                            ∂
  145.                             "{FWCCMDriverSourceDir}FWCCMDriver.c"            ∂
  146.                             "{FWCCMDriverSourceDir}FWCCMDriver.h"
  147.     {CPPC}                                                                    ∂
  148.         "{FWCCMDriverSourceDir}FWCCMDriver.c"                                 ∂
  149.         -i "{FWCCMDriverSourceDir}"                                            ∂
  150.         {CPPCOptions}                                                        ∂
  151.         -o {Targ}
  152.  
  153. "{ExtensionsDir}FWCCMDriver"    ƒƒ                                            ∂
  154.                             "{ObjectsDir}FWCCMDriver.c.o"                    ∂
  155.                             "{FWCCMDriverSourceDir}FWCCMDriver.exp"
  156.     {LinkPPC}                                                                ∂
  157.         -t 'ndrv'                                                            ∂
  158.         -c 'fw  '                                                            ∂
  159.         -xm sharedlibrary                                                    ∂
  160.         -w                                                                     ∂
  161.         -@export "{FWCCMDriverSourceDir}FWCCMDriver.exp"                    ∂
  162.         -main ComponentInterface                                            ∂
  163.         -term FWCCMTerminate                                                ∂
  164.         "{ObjectsDir}FWCCMDriver.c.o"                                        ∂
  165.         "{SysLibrariesDir}InterfaceLib.xcoff"                                ∂
  166.         "{SysLibrariesDir}StdCLib.xcoff"                                    ∂
  167.         "{SysLibrariesDir}NameRegistryLib"                                    ∂
  168.         "{SysLibrariesDir}DriverServicesLib"                                ∂
  169.         "{SysLibrariesDir}PCILib"                                            ∂
  170.         "{SysLibrariesDir}FWServicesLib"                                    ∂
  171.         "{SysLibrariesDir}PPCCRuntime.o"                                    ∂
  172.         -librename InterfaceLib.xcoff=InterfaceLib                            ∂
  173.         -librename StdCLib.xcoff=StdCLib                                    ∂
  174.          -o {Targ}
  175.  
  176. "{ExtensionsDir}FWCCMDriver"    ƒƒ                                            ∂
  177.                             "{ObjectsDir}FWCCMDriver.c.o"                    ∂
  178.                             "{FWCCMDriverSourceDir}FWCCMDriver.exp"            ∂
  179.                             "{FWCCMDriverSourceDir}FWCCMDriver.r"            ∂
  180.                             "{VDigRootDir}MakeFile"
  181.     Rez                                                                        ∂
  182.         {RezOptions}                                                        ∂
  183.         "{FWCCMDriverSourceDir}FWCCMDriver.r"                                ∂
  184.         -a                                                                    ∂
  185.         -o {Targ}
  186.  
  187.  
  188. FWCCMDriver    ƒ                                                                ∂
  189.                         "{ExtensionsDir}FWCCMDriver"
  190.  
  191.  
  192. VDig    ƒ                                                                    ∂
  193.                         FWCCMDriver
  194.